package juc.threadcore;

public class bothRunnable {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("实现Runnable");
            }
        }) {
            @Override
            public void run() {
                System.out.println("继承Thread");
            }
        }.start();
    }
}
